import { LESSON_SERVER_AXIOS } from '@/api/axios';

// GET - 查看视频详情: 按视频主键查询一条视频记录，查询的结果中包含视频中的章节记录，无需token验证
export const SELECT_BY_VIDEO_ID = (videoId) => LESSON_SERVER_AXIOS.get(`/video/selectByVideoId/${videoId}`);
// GET - 搜索视频: 按视频标题从ES中搜索符合条件的VideoDoc记录，无需token验证
export const SEARCH_BY_VIDEO_TITLE = (pageNum, pageSize, videoTitle) =>
    LESSON_SERVER_AXIOS.get("/video/searchByVideoTitle", {params: {pageNum, pageSize, videoTitle}});